package com.kaiyiweitong.tongxing.util;

import android.widget.EditText;
import android.widget.TextView;

/**
 * Created by Administrator on 2017/12/22 0022.
 */

public class MyTextUtils {
    public static String checkTextContent(TextView tv) {
        if (tv == null || tv.getText() == null) {
            return null;
        } else {
            return tv.getText().toString().trim();
        }
    }

    public static String checkTextContent(EditText et) {
        if (et == null || et.getText() == null) {
            return null;
        } else {
            return et.getText().toString().trim();
        }
    }
}
